package com.cat.model.common.enumerator;

/**
 * 订单 状态
 * @author Administrator
 *
 */
public enum OrderStatus {
	
	UNPAY("01","待付款"),
	PAYED("02","已付款"),
	REBACKING("03","正在退款"),
	REPEAL("04","已退款"),
	;
	
	private String value;

	private String valueCn;
	
	private OrderStatus(String value, String valueCn) {
		this.value = value;
		this.valueCn = valueCn;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getValueCn() {
		return valueCn;
	}

	public void setValueCn(String valueCn) {
		this.valueCn = valueCn;
	}
	
	public static String getName(Integer value) {
		if (value == null) {
			return "";
		}
		for (OrderStatus enumObj : OrderStatus.values()) {
			if (value.equals(enumObj.getValue())) {
				return enumObj.getValueCn();
			}
		}
		return "";
	}
	
}
